package com.wie.staffhubpro.service;

import com.wie.staffhubpro.domain.dto.AttendanceDTO;
import com.wie.staffhubpro.domain.dto.CheckDTO;
import com.wie.staffhubpro.domain.entity.Attendance;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wie.staffhubpro.domain.vo.AttdDeptVO;

import java.util.List;

/**
* @author WiedersehenM
* @description 针对表【attendance】的数据库操作Service
* @createDate 2025-06-30 17:57:29
*/
public interface AttendanceService extends IService<Attendance> {

    /**
     *查看今日考勤
     */
    Attendance getToday(String empId);

    /**
     * 查看个人历史考勤
     */
    List<Attendance> getHistory(AttendanceDTO attendanceDTO);

    /**
     * 多条件查询部门考勤信息
     */
    List<AttdDeptVO> getByDeptId(AttendanceDTO attendanceDTO);

    /**
     * 员工签到
     */
    void checkIn(CheckDTO checkDTO);

    /**
     * 员工签退
     */
    void checkOut(CheckDTO checkDTO);

    /**
     * 查询全部考勤信息
     */
    List<AttdDeptVO> getList(AttendanceDTO attendanceDTO);
}
